/**
 * 
 */
package org.jft.datamodel.database.dao.implementation;

import java.sql.SQLException;
import java.util.List;

import org.hibernate.Session;
import org.jft.datamodel.database.HibernateUtil;
import org.jft.datamodel.database.dao.GenericDAO;
import org.jft.datamodel.database.mapping.EventClass;

/**
 * @author LAP
 *
 */
public class EventClassDAO extends GenericDAO<EventClass> {

	@Override
	public EventClass getByID(Long id) throws SQLException {
		Session session = HibernateUtil.getInstance().getSessionFactory().getCurrentSession();
		EventClass eventClass = (EventClass) session.load(EventClass.class, id);
		return null;
	}

	@Override
	public List<EventClass> getAll() throws SQLException {
		Session session = HibernateUtil.getInstance().getSessionFactory().getCurrentSession();
		List<EventClass> eventClasses = session.createCriteria(EventClass.class).list();
		return null;
	}

}
